package com.gopay.cashier.web.utils;

import com.gopay.cashier.common.exception.WebException;
import com.gopay.common.constants.bank.BisBankBusinessProd;
import com.gopay.common.constants.proccode.ProcCodeConstants;
import com.gopay.common.constants.trans.PayChannel;

public class BisBankBusinessProdConvertUtil {

	public static BisBankBusinessProd getBisBankBusinessProd(PayChannel pc) throws WebException{
		switch (pc) {
		case _01:
			return BisBankBusinessProd._00;/** 个人网银支付 */
		case _51:
			return BisBankBusinessProd._01;/** 企业网银支付 */
		case _03:
			return BisBankBusinessProd._15;/** 借记卡快捷支付 */
		case _06:
			return BisBankBusinessProd._05;/** 信用卡快捷支付 */
		default:
			break;
		}
		throw new WebException(ProcCodeConstants.PROC_CODE_100E1026);
	}
}
